﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyCalManager.Helper
{
    class WWPointsClass
    {
        public double Calculate(int kalorien, double fett)
        {
            double x = (fett * 0.11) + (kalorien * 0.0165);
            return Math.Round(x * 100) / 100;
        }
        public decimal CalculateDecimal(int kalorien, double fett)
        {
            double x = (fett * 0.11) + (kalorien * 0.0165);
            return decimal.Parse((Math.Round(x * 100) / 100).ToString());
        }

    }
}
